package com.jeegit.ecms.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.compress.utils.Lists;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jeegit.common.annotation.Excel;
import com.jeegit.common.core.domain.BaseEntity;

/**
 * 视频章节对象 cms_video_chapter
 * 
 * @author jeegit
 * @date 2022-06-27
 */
public class CmsVideoChapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 课程编码 */
    @Excel(name = "课程编码")
    private Long cmsVideoId;

    /** 章节标题 */
    @Excel(name = "章节标题")
    private String title;

    /** 课程资料 */
    @Excel(name = "课程资料")
    private String videoAttachment;

    /** 排序 */
    @Excel(name = "排序")
    private BigDecimal sort;

    /** 状态（0正常 1删除 2停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=删除,2=停用")
    private String status;

    private List<CmsVideoItems> listCmsVideoItems;
    
    
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCmsVideoId(Long cmsVideoId) 
    {
        this.cmsVideoId = cmsVideoId;
    }

    public Long getCmsVideoId() 
    {
        return cmsVideoId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setVideoAttachment(String videoAttachment) 
    {
        this.videoAttachment = videoAttachment;
    }

    public String getVideoAttachment() 
    {
        return videoAttachment;
    }
    public void setSort(BigDecimal sort) 
    {
        this.sort = sort;
    }

    public BigDecimal getSort() 
    {
        return sort;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    
    
    
    
    

    public List<CmsVideoItems> getListCmsVideoItems() {
	if(listCmsVideoItems==null) {
	    listCmsVideoItems=Lists.newArrayList();
	}
        return listCmsVideoItems;
    }

    public void setListCmsVideoItems(List<CmsVideoItems> listCmsVideoItems) {
        this.listCmsVideoItems = listCmsVideoItems;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cmsVideoId", getCmsVideoId())
            .append("title", getTitle())
            .append("videoAttachment", getVideoAttachment())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
